<template>
  <div class="container">
    <nav-bar title="消息通知" />
    <div class="tips">
      <img src='../../assets/img/notice.png' />
      <p>感谢您选择TITIKA，我们会尽快为您回复</p>
    </div>
    <div class="item ask">
      <img src='../../assets/img/logo-shape.png' />
      <div class="content">
        <div class="time">2020-01-02 12:33</div>
        <div class="dis">您可以查收一下</div>
      </div>
    </div>
    <div class="item answer">
      <div class="content">
        <div class="time">2020-01-02 20:33</div>
        <div class="dis">这款适合我</div>
      </div>
      <img src='../../assets/img/person.png' />
    </div>
    <div class="send">
      <input type="text" />
      <button>提交</button>
    </div>
  </div>
</template>

<script>
import NavBar from 'components/common/NavBar'
export default {
  components: {
    NavBar
  }
}
</script>

<style scoped>
.tips{
  padding: 0 15px;
  height: 70px;
  display: flex;
  align-items: center;
}
.tips img{
  width: 20px;
  height: 20px;
  margin-right: 20px;
}
.item{
  padding: 0 15px;
  display: flex;
  margin-bottom: 20px;
}
.item img{
  width: 40px;
  height: 40px;
  border-radius: 3px;
  margin-top: 5px;
}
.item .content{
  position: relative;
  flex-grow: 1;
  margin: 0 20px;
  padding: 10px 20px 20px 20px;
  border-radius: 5px;
  background-color: #ffffff;
}
.item .content:before{
  position: absolute;
  left: -6px;
  top: 20px;
  display: block;
  content: '';
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background-color: #ffffff;
}
.item .content .time{
  line-height: 2;
  padding-bottom: 5px;
  font-size: 14px;
  color: #666666;
}
.ask .content{
  margin-right: 60px;
}
.answer .content{
  margin-left: 60px;
}
.answer .content:before{
  left: auto;
  right: -6px;
}
.answer img{
  border-radius: 50%;
}
.send{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: #e7e7e7;
}
.send input{
  flex-grow: 1;
  background: none;
}
.send button{
  width: 100px;
  color: #ffffff;
  background-color: #000000;
}
</style>